<#macro houtai title>
    <html lang="zh-CN">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
        <title>${title!'Hi'} </title>
        <!-- Bootstrap -->
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

        <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
        <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
        <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>


    </head>
    <body>

    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">学生信息管理系统&nbsp;<span id="fold" class="glyphicon glyphicon-step-backward"></span></a>

            </div>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">欢迎<span class="text-danger">${(user.username)!"小明"}</span></a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">个人中心 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">个人信息</a></li>
                        <li><a href="#">修改密码</a></li>

                        <li role="separator" class="divider"></li>
                        <li><a href="admin/exit.jsp">注销</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="container-fluid">
        <div class="row">
            <!--    左侧菜单栏-->
            <div id="left" class="col-sm-2">
                <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-default">
                        <div class="panel-heading" role="tab" id="headingOne">
                            <h4 class="panel-title">
                                <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne"
                                   aria-expanded="true" aria-controls="collapseOne">
                                    <span class="glyphicon glyphicon-user"></span> 学生管理
                                </a>
                            </h4>
                        </div>
                        <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                            <div class="panel-body">
                                <!--                        https://v3.bootcss.com/components/#list-group-->
                                <ul class="list-group">
                                    <li class="list-group-item"><a href="stu?method=list">学生列表</a></li>

                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading" role="tab" id="headingTwo">
                            <h4 class="panel-title">
                                <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
                                   href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                                    <span class="glyphicon glyphicon-apple"></span> 系统管理
                                </a>
                            </h4>
                        </div>
                        <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                            <div class="panel-body">
                                <ul class="list-group">
                                    <li class="list-group-item"><a href="">系统状态</a></li>
                                    <li class="list-group-item"><a href="">数据备份</a></li>

                                </ul>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <!--    网页内容部分-->
            <div id="mainContent" class="col-sm-10">
                    <#nested >
            </div>
        </div>
    </div>



    </body>
    </html>
</#macro>

<#macro secretary>
    <h2 style="text-align: center;color: hotpink">你的贴身秘书：贾妍</h2>
</#macro>
<#macro lover name>
    <h3 style="text-align: center;color: hotpink">金屋藏娇：${name}</h3>
</#macro>
<#macro model id=0 price=599 kiss=false>
    <h2 style="text-align: center;color: hotpink">你好：我的工号是${id},可以为您服务吗？价位是${price},${kiss?string('可以','不能')}接吻！</h2>
</#macro>
<#macro vip name>
    <h1 style="text-align: center;color: #e9f106">尊敬的${name},本公司竭诚为你服务，以下是你的服务清单，请慢用！</h1>
    <#nested >
</#macro>

<#macro repeat count>
    <#list 1..count as x>
        <#nested x ,x/2>
    </#list>
</#macro>